<h1 style="color:#FF3300;"><?php echo $restaurant['name']." - ".$restaurant['provide'] ?></h1>
<input type="button" onclick="location.assign('<?php echo base_url(); ?>admin/restaurantbanner/edit?restaurantid=<?php echo $_GET['restaurantid']?>');" value="Insert" style="float:right;margin-right:10px;margin-bottom:5px;"/>
<table>
  <tr>
    <th>STT</th>
    <th>Avatar</th>
    <th>Status</th>
    <th>Edit / Del</th>
  </tr>
  <?php if(count($data)>0){
			foreach($data as $k=>$list){?>
  <tr>
    <th><?php echo $k+1 ?></th>
    <td><img src="<?php echo base_url()."/uploads/restaurantbanner/".$list['avatar'] ?>" width="200"/></td>
    <th><select name="changestatus" onChange="location.assign('<?php echo base_url(); ?>admin/restaurantbanner/changestatus?restaurantid=<?php echo $_GET["restaurantid"] ?>&id=<?php echo $list["id"] ?>&status='+this.options[this.selectedIndex].value);">
        <option value="1" <?php if($list['status']==1) echo "selected disabled";?>>Highlights</option>
        <option value="2" <?php if($list['status']==2) echo "selected disabled";?>>Normal</option>
        <option value="3" <?php if($list['status']==3) echo "selected disabled";?>>Hidden</option>
      </select></th>
    <th><a href="<?php echo base_url(); ?>admin/restaurantbanner/edit?restaurantid=<?php echo $_GET['restaurantid'] ?>&id=<?php echo $list['id'] ?>"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_edit.png"/></a>&nbsp;&nbsp;<a href="javascript:void(0);" onClick="if(confirm('Do you want to Del this Information ?')) location.assign('<?php echo base_url(); ?>admin/restaurantbanner/delete?restaurantid=<?php echo $_GET["restaurantid"]; ?>&id=<?php echo $list["id"]; ?>');"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_delete.png"/></a></th>
  </tr>
  <?php }
		}?>
</table>
